#ifndef MMU_H
#define MMU_H
#include "cpu.h"

byte* memory;

byte* rom0;
byte* rom1;
byte* vram;
byte* sram;
byte* wram;
byte* oam;
byte* io;
byte* zram;

void mmu_load_rom();

void mmu_init();
//Read/Write byte
byte rb(word adr);
void wb(word adr, byte data);
//Read/Write word
word rw(word adr);
void ww(word adr, word data);

#endif
